package stack.era.presentation.world;

import java.awt.BorderLayout;

import javax.swing.JTabbedPane;

import stack.era.presentation.ERAFrameCardPanel;

public class WorldPanel extends ERAFrameCardPanel {

	private static final long serialVersionUID = 5270036975695030302L;

	private JTabbedPane worldTabs;
	private WorldTravelTab travelTab;
	private WorldExploreTab exploreTab;

	public WorldPanel() {
		super();

		travelTab = new WorldTravelTab();
		exploreTab = new WorldExploreTab(this);

		worldTabs = new JTabbedPane();
		worldTabs.addTab("Travel", travelTab);
		worldTabs.addTab("Explore", exploreTab);

		this.setLayout(new BorderLayout());
		this.add(worldTabs, BorderLayout.CENTER);
	}

	@Override
	public void populate() {
		travelTab.populate();
	}

	@Override
	public void doneWaiting() {
		exploreTab.explore();
	}

}
